package com.amigo.online.provider.compare.task;

import java.util.List;
import java.util.concurrent.Callable;

import org.springframework.beans.factory.annotation.Autowired;

import com.amigo.online.provider.common.entity.UserMongoInfo;
import com.amigo.online.provider.sync.handle.data.mongo.service.UserMongoService;

public class MongoUserTask extends AbstractTask implements Callable<List<UserMongoInfo>> {

    public MongoUserTask(int startId, int endId) {
        super(endId, endId);
    }

    @Autowired
    UserMongoService userMongoService;

    @Override
    public List<UserMongoInfo> call() throws Exception {
        return userMongoService.listUserByStartIdAndEndId(startId, endId);
    }

}
